package com.ktjy.service;

import com.ktjy.mapper.ConcertMapper;
import com.ktjy.pojo.Concert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("concertService")
public class ConcertServiceImpl implements ConcertService{

    @Autowired
    private ConcertMapper concertMapper;

    @Override
    public List<Concert> selectConcert(String concertName, Integer pageBegin, Integer pageSize) {
        return concertMapper.selectConcert(concertName, pageBegin, pageSize);
    }

    @Override
    public int count(String concertName) {
        return concertMapper.count(concertName);
    }

    @Override
    public int insertConcert(Concert concert) {
        return concertMapper.insertConcert(concert);
    }

    @Override
    public Concert selectConcertById(Integer concertId) {
        return concertMapper.selectConcertById(concertId);
    }

    @Override
    public int updateConcert(Concert concert) {
        return concertMapper.updateConcert(concert);
    }

    @Override
    public int deleteConcert(Integer concertId) {
        return concertMapper.deleteConcert(concertId);
    }
}
